#ifndef BROWSER_VIEW_DELEGATE_H
#define BROWSER_VIEW_DELEGATE_H

#include <stddef.h>
#include <stdio.h>

#include "capi/views/cef_browser_view_delegate_capi.h"

#include "window_delegate.h"
#include "tools/log_util.h"
#include "logger.h"

typedef struct _browser_view_delegate {
    cef_browser_view_delegate_t cef_browser_view_delegate;
    int popup_width;
    int popup_height;
    char *popup_icon_png_path;
    char *popup_title;
    int is_popup_frameless;
} browser_view_delegate;


int CEF_CALLBACK on_popup_browser_view_created(
      struct _cef_browser_view_delegate_t* self,
      struct _cef_browser_view_t* browser_view,
      struct _cef_browser_view_t* popup_browser_view,
      int is_devtools);


// 初始化 browser_view_delegate_ref_t
browser_view_delegate* create_browser_view_delegate_t(int popup_width, int popup_height, char *popup_icon_png_path, char *popup_title,int is_popup_frameless);


#endif

